﻿<Window
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  Title="StackPanel Sample"
  Height="300"
  Width="300">
  
  <StackPanel>
    <Slider Name="sld"></Slider>
    <TextBox Text="{Binding ElementName=sld, Path=Value}"></TextBox>
    <Button>Button 1</Button>
    <Button>Button 2</Button>
    <StackPanel Orientation="Horizontal">
      <Button>Button 3</Button>
      <Button>Button 4</Button>
    </StackPanel>
  </StackPanel>
</Window>